package com.buddies.lottery.ui.lottery.detail;

import com.buddies.lottery.base.IPresenter;
import com.buddies.lottery.base.IView;
import com.buddies.lottery.data.bean.BetItem;
import com.buddies.lottery.data.resp.LotteryDetailResponse;
import com.buddies.lottery.data.resp.LotteryTabOptionsResponse;
import com.buddies.lottery.data.resp.PostBetResponse;

import java.util.List;

/**
 * Created by xuliang on 2018/2/28.
 */

public interface LotteryDetailContract {

    interface View extends IView {
        void onLotteryDetailLoaded(LotteryDetailResponse response);
        void onLotteryTabOptionsLoaded(LotteryTabOptionsResponse response);
        void onUpdateBalance();
        void onPostBetSuccess(PostBetResponse response);
    }

    interface Presenter extends IPresenter<View> {
        void loadLotteryDetail(int lotteryId);
        void loadLotteryTabOptions(String lotteryTabQueryId);
        void loadBalance();
        void postBet(int lotteryId, String period, List<BetItem> betItems);
    }

}
